PositiveInt
Represents positive integers, including 0.
Constructors
Returns the value as a positive int, or throws an IllegalArgumentException if the value is strictly negative.
Types
Functions
Compares this value with the other value for order. Returns 0 if this value equals the other value, a negative number if this value is less than the other value, or a positive number if this value is greater than the other value.
Divides this value by other, truncating the result to an integer that is closer to 0. Throws an ArithmeticException if the other value equals 0.
Returns this value as a negative int, or throws an IllegalArgumentException if this value is strictly positive.
Returns this value as a non-zero int, or throws an IllegalArgumentException if this value equals 0.
Returns the string representation of this value as a not blank string.
Returns this value as a strictly positive int, or throws an IllegalArgumentException if this value equals 0.
Returns the negative of this value.
Returns this value.